package com.castle.fortress.admin.orders.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.castle.fortress.admin.orders.entity.GoodsOrderEntity;
import com.castle.fortress.admin.orders.dto.GoodsOrderDto;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.Map;
import java.util.List;

/**
 * 订单表 服务类
 *
 * @author Mgg
 * @since 2023-01-13
 */
public interface GoodsOrderService extends IService<GoodsOrderEntity> {

    /**
     * 分页展示订单表列表
     * @param page
     * @param goodsOrderDto
     * @return
     */
    IPage<GoodsOrderDto> pageGoodsOrder(Page<GoodsOrderDto> page, GoodsOrderDto goodsOrderDto);

    /**
    * 分页展示订单表扩展列表
    * @param page
    * @param goodsOrderDto
    * @return
    */
    IPage<GoodsOrderDto> pageGoodsOrderExtends(Page<GoodsOrderDto> page, GoodsOrderDto goodsOrderDto);
    /**
    * 订单表扩展详情
    * @param id 订单表id
    * @return
    */
    GoodsOrderDto getByIdExtends(Long id);

    /**
     * 展示订单表列表
     * @param goodsOrderDto
     * @return
     */
    List<GoodsOrderDto> listGoodsOrder(GoodsOrderDto goodsOrderDto);

    GoodsOrderDto saveOrder(GoodsOrderDto goodsOrderEntity);
}
